<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="com.jd.ty.pojo" >
	<class name="User" table="USER" schema="TYMS">
	    <id name="userId" type="java.lang.Long">
            <column name="USER_ID" precision="10" scale="0" />
            <generator class="identity" >
            </generator>
	    </id>
        <property name="loginId" type="java.lang.String">
            <column name="LOGIN_ID" length="10"/>
        </property>
        <property name="loginPwd" type="java.lang.String">
            <column name="LOGIN_PWD" length="10"/>
        </property>
        <property name="createdDate" type="timestamp" column="CREATED_DATE" not-null="true" />
        <property name="lastModified" type="timestamp" column="LAST_MODIFIED" not-null="true" />
        <many-to-one name="role" class="com.jd.ty.pojo.Role" not-null="false"   lazy="false" >
            <column name="ROLE_ID"/>
        </many-to-one>
</class>
</hibernate-mapping>
